//
//  ProductUIV.h
//  mbstore
//
//  Created by huangyi on 14-3-17.
//  Copyright (c) 2014年 huangyi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ItemUI.h"
#import "TreeUIM.h"
#import "ProductDetail.h"
#import "StrikeThroughLabel.h"
#import "MBStoreSrv.h"
@interface ProductUIV : UIView <UIScrollViewDelegate,TreeUIMDelegate>{
    ProductDetail *upperDetail,*lowerDetail;
     MBStoreSrv *responseCtr;
    NSDictionary *upDicPro,*lowDicPro;
}

@property (weak, nonatomic) IBOutlet UIButton *btnUp;
- (IBAction)PressUp:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UIButton *btnDown;
- (IBAction)PressDown:(UIButton *)sender;
@property(nonatomic,weak)ItemUI *delegate;

@property(nonatomic,strong)NSString *upper;
@property(nonatomic,strong)NSString *lower;

@property(nonatomic,strong)NSArray *upperItems;
@property(nonatomic,strong)NSArray *lowerItems;

@property(nonatomic,weak)IBOutlet UIScrollView *upperScrollView;
@property(nonatomic,weak)IBOutlet UIScrollView *lowerScrollView;

@property(nonatomic,weak)IBOutlet UILabel *upperType;
@property(nonatomic,weak)IBOutlet UIButton *upperTypeButton;
@property(nonatomic,weak)IBOutlet UITextView *upperText;
@property(nonatomic,weak)IBOutlet UILabel *upperPrice;
@property(nonatomic,weak)IBOutlet UIButton *upperBuyButton;

@property(nonatomic,weak)IBOutlet UILabel *lowerType;
@property(nonatomic,weak)IBOutlet UIButton *lowerTypeButton;
@property(nonatomic,weak)IBOutlet UITextView *lowerText;
@property(nonatomic,weak)IBOutlet UILabel *lowerPrice;
@property(nonatomic,weak)IBOutlet UIButton *lowerBuyButton;

-(IBAction)onTypeClick:(id)sender;
-(IBAction)onBuyClick:(id)sender;
@property (nonatomic ,strong)NSString *strSuit;
@property (weak, nonatomic) IBOutlet UIView *vieContainer;
@property (weak, nonatomic) IBOutlet UIView *vieContainerDown;
@property (weak, nonatomic) IBOutlet UIView *vieContainerTotal;
@property (weak, nonatomic) IBOutlet UILabel *labTotalMoney;
@property (weak, nonatomic) IBOutlet UILabel *labResultsMoney;
@property (weak, nonatomic) IBOutlet StrikeThroughLabel *labStartPrice;
@property (weak, nonatomic) IBOutlet UILabel *labSavePrice;

@end
